package com.yao.shop.mapper;

import com.yao.shop.pojo.ShopProductPack;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShopProductPackMapper {
    void saveBatch(List<ShopProductPack> packList);

    void deleteByPackCode(long packCode);

    List<ShopProductPack> getByPackCode(Long id);

    ShopProductPack getByProductId(Long id);

    void deleteById(Long id);
    /**
     * 根据商品ID集合删除
     * @param productIds
     */
    void deleteByProductIds(List<Long> productIds);

    List<ShopProductPack> getByProductIds(List<Long> productIds);
}
